package com.ruoyi.teach.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程对象 nb_course
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
public class NbCourse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程主键 */
    private Long id;

    /** 创建老师ID */
    @Excel(name = "创建老师ID")
    private Long teacherId;

    /** 教师姓名 */
    @Excel(name = "教师姓名")
    private String teacherName;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 课程简介 */
    @Excel(name = "课程简介")
    private String description;

    /** 课程封面 */
    @Excel(name = "课程封面")
    private String icon;

    /** 课程等级（1->基础;2->中级 3->高级  4->特级） */
    @Excel(name = "课程等级", readConverterExp = "1=->基础;2->中级,3=->高级,4=->特级")
    private Long level;

    /** 课程类型 */
    @Excel(name = "课程类型")
    private Long categoryId;

    /** 课程创建百分比 */
    @Excel(name = "课程创建百分比")
    private Long percentage;

    /** 0->未完善;1->审核通过,2->未审核,3->审核未通过 */
    @Excel(name = "0->未完善;1->审核通过,2->未审核,3->审核未通过")
    private Long status;

    /** 删除标志（0代表存在;2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setTeacherName(String teacherName) 
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName() 
    {
        return teacherName;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setPercentage(Long percentage) 
    {
        this.percentage = percentage;
    }

    public Long getPercentage() 
    {
        return percentage;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teacherId", getTeacherId())
            .append("teacherName", getTeacherName())
            .append("courseName", getCourseName())
            .append("description", getDescription())
            .append("icon", getIcon())
            .append("level", getLevel())
            .append("categoryId", getCategoryId())
            .append("percentage", getPercentage())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
